// 构造函数的规范 首字母一般大写
function Person(name, age, height, address) {
    this.name = name
    this.age = age
    this.height = height
    this.address = address
    this.eating = function () {
        console.log(this.name, '在吃东西~')
    }

    this.running = function () {
        console.log(this.name, '在跑步')
    }
}

var p1 = new Person("张三", 18, 1.88, "广州市")
var p2 = new Person("李四", 18, 1.88, "广州市")
// console.log(p1)
console.log(p1.eating === p2.eating)//false
//依然有缺陷 空间浪费